package com.mzkj.wanjulaile.mobile.api.modules.activeConfig.service;


import com.mzkj.wanjulaile.mobile.api.modules.activeConfig.entity.ActiveSharePic;
import com.mzkj.wanjulaile.mobile.api.modules.activeConfig.mapper.ActiveSharePicMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 分享活动图片Service
 * @author ianly
 * @version 2017-02-10
 */
@Service
public class ActiveSharePicServiceImpl implements ActiveSharePicService {
	@Autowired
	private ActiveSharePicMapper activeSharePicMapper;

	public ActiveSharePic get(String id) {
		return activeSharePicMapper.get(id);
	}
//
//	public List<ActiveSharePic> findList(ActiveSharePic activeSharePic) {
//		return super.findList(activeSharePic);
//	}

	/**
	 * 通过类型获得图片
	 * @param type
	 * @return
     */
	public ActiveSharePic getByType(Integer type) {
		return activeSharePicMapper.getByType(type);
	}
}